add_libaa_test(
        aa_mir_unit_tests
        test_ebur128_utilities.cpp
        test_extractor_base.cpp
        test_fft.cpp
        test_loudness_ebur128_extractor.cpp
        test_magnitude.cpp
        test_max_filter.cpp
        test_mir_algorithm_base.cpp
        test_mir_algorithm_factory.cpp
        test_mir_input.cpp
        test_mir_output.cpp
        test_moving_average.cpp
        test_onset_detection_extractor.cpp
        test_spectrum.cpp
        test_streaming_max_filter.cpp
        test_streaming_moving_average.cpp
        test_streaming_super_flux_novelty.cpp
        test_streaming_super_flux_peaks.cpp
        test_superflux_novelty.cpp
        test_superflux_peaks.cpp
        test_triangular_bands.cpp
        test_windowing.cpp
)

target_link_libraries(aa_mir_unit_tests PRIVATE rubberband eigen)
target_include_directories(aa_mir_unit_tests
        PRIVATE
        $<BUILD_INTERFACE:${LIBAA_3RD_DIR}/rubberband-2.0.2/rubberband>
        $<BUILD_INTERFACE:${LIBAA_3RD_DIR}/rubberband-2.0.2/src>
        )